package gwtmodule1.client;

import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.ServiceDefTarget;

public interface HelloWorld extends RemoteService {

	public static final String SERVICE_URI = "/HelloWorldURL";

	public static class Util {

		public static HelloWorldAsync getInstance() {

			HelloWorldAsync instance = (HelloWorldAsync) GWT
					.create(HelloWorld.class);
			ServiceDefTarget target = (ServiceDefTarget) instance;
			target.setServiceEntryPoint(GWT.getModuleBaseURL() + SERVICE_URI);
			return instance;
		}
	}
	
	public String getHelloWorldMSG(String param);

}
